package com.liqi.frame.comm.util;

import com.alibaba.excel.context.AnalysisContext;
import com.alibaba.excel.event.AnalysisEventListener;

import java.util.ArrayList;
import java.util.List;

/**
 * @Author: zhoujunwei
 * @Date: 2019/3/13 16:44
 * @Description:
 */

public class ExcelListener extends AnalysisEventListener{

  /**
   * 自定义用于暂时存储data。
   * 可以通过实例获取该值
   */

  private List<Object> datas = new ArrayList<>();



  @Override
  public void invoke(Object o, AnalysisContext analysisContext) {
    datas.add(o);
  }

  @Override
  public void doAfterAllAnalysed(AnalysisContext analysisContext) {

  }

  public List<Object> getDatas() {
    return datas;
  }

  public void setDatas(List<Object> datas) {
    this.datas = datas;
  }
}
